home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
telecomm
/
sticpsrc.lzh
/
SOURCE.ARC
/
PASSWORD.H
< prev
next >
Wrap
C/C++ Source or Header
|
1988-10-23
|
380b
|
14 lines
/* Password-protection for cricical services */
#define P_ROWS 3 /* number of different rows */
#define P_NUMS 5 /* number of different numbers */
struct password {
char *paswrd; /* the actual password */
int chall[P_ROWS][P_NUMS]; /* the challenge sent to the user */
int okay; /* set when response okay */
};
char *gen_challenge();
int ok_password();